package compiler.syntax.nonTerminal;

import java.util.ArrayList;

import compiler.CompilerContext;

import es.uned.lsi.compiler.intermediate.IntermediateCodeBuilder;
import es.uned.lsi.compiler.semantic.ScopeIF;

public class Parametros extends NonTerminal {

	ArrayList<Expresion> parametros = new ArrayList<Expresion>();
	
	public Parametros() {
		super();
	}

	public void generarCodigoIntermedio()
	{
		ScopeIF scope = CompilerContext.getScopeManager().getCurrentScope();
		IntermediateCodeBuilder cb = new IntermediateCodeBuilder(scope);

		for(Expresion parametro : parametros)
		{
			cb.addQuadruples(parametro.getIntermediateCode());
			

		}
		this.setIntermediateCode(cb.create());

	}

}
